function getFormatDate(date){
    let year=date.getFullYear();
    let month=date.getMonth()+1;
    let strDate=date.getDate();
    return  year+'-'+(month<10?'0':'')+month+'-'+(strDate<10?'0':'')+strDate;
}

export default getFormatDate;